package com.example.seckill.service;

import com.example.seckill.common.Result;
import com.example.seckill.entity.SeckillGoods;
import com.example.seckill.entity.SeckillOrder;
import java.util.List;

public interface SeckillService {
    Result<SeckillOrder> seckill(Long userId, Long goodsId);
    Result<List<SeckillGoods>> listGoods(Long userId);
    Result<SeckillOrder> getOrder(Long orderId);
    /**
     * 检查用户是否已购买商品
     */
    Result<Boolean> checkPurchased(Long userId, Long goodsId);
    int getStockFromCache(Long goodsId);
} 